package com.xs.common.bean;

/**
 * @author xs
 * date 2018/3/24 17:40
 */
public class Main {
    public static void main(String[] args) {
        Demo oldDemo = Demo.builder().id(1L).name("xs001").age(10).build();
        Son oldSon =Son.builder().name("son001").build();
        oldDemo.setSon(oldSon);

        Demo newDemo = Demo.builder().id(2L).name("xs002").age(12).sex(1).build();
        Son newSon =Son.builder().name("son002").build();
        newDemo.setSon(newSon);

        FindChange findChange =new FindChange();
        String changeInfo = findChange.getBeanChangeInfo(oldDemo, newDemo);
        System.out.println(changeInfo);

    }

}
